<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>教师试卷阅览</title>
    <link href="https://cdn.bootcss.com/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container">
    <div class="row">
        <div class="col-md-2"></div>
        <div class="col-md-8">
            <#if tp??>
                <div class="page-header" align="center">
                    <h1>${tp.testPaperName}</h1>
                    <small>考试时间: ${json.startTime}</small>
                    <small>时长: ${json.testTime}</small>
                    <small>总分: ${json.totalScore}</small>
                </div>

                <#assign index = 0>

                <#if save.sgList?size != 0>
                    <div class="panel-title">
                        <h3>单项选择题 共${save.sgList?size}题,每题${json.sgScore}分</h3>
                    </div>
                    <#list save.sgList as sg>
                        <#assign index = index+1>
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h1 class="panel-title">${index}.题目: ${sg.sgQuestion}</h1>
                            </div>
                            <div class="panel-body">
                                <h5>A. ${sg.choiceA}</h5>
                                <h5>B. ${sg.choiceB}</h5>
                                <h5>C. ${sg.choiceC}</h5>
                                <h5>D. ${sg.choiceD}</h5>
                                <h5>答案: ${sg.answer}</h5>
                                <h5>分数: ${sg.score}</h5>
                                <h5>难度: ${sg.difficult}</h5>
                            </div>
                        </div>
                    </#list>
                </#if>
                <hr>
                <#if save.plList?size != 0>
                    <div class="panel-title">
                        <h3>多项选择题 共${save.plList?size}题,每题${json.plScore}分</h3>
                    </div>
                    <#list save.plList as pl>
                        <#assign index = index+1>
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h2 class="panel-title">${index}.题目: ${pl.plQuestion}</h2>
                            </div>
                            <div class="panel-body">
                                <h5>A. ${pl.choiceA}</h5>
                                <h5>B. ${pl.choiceB}</h5>
                                <h5>C. ${pl.choiceC}</h5>
                                <h5>D. ${pl.choiceD}</h5>
                                <h5>答案: ${pl.answer}</h5>
                                <h5>分数: ${pl.score}</h5>
                                <h5>难度: ${pl.difficult}</h5>
                            </div>
                        </div>
                    </#list>
                </#if>
                <hr>
                <#if save.tofList?size != 0>
                    <div class="panel-title">
                        <h3>判断题 共${save.tofList?size}题,每题${json.tofScore}分</h3>
                    </div>
                    <#list save.tofList as emp>
                        <#assign index = index+1>
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h2 class="panel-title">${index}.题目: ${emp.tofQuestion}</h2>
                            </div>
                            <div class="panel-body">
                                <h5>答案: ${emp.answer}</h5>
                                <h5>分数: ${emp.score}</h5>
                                <h5>难度: ${emp.difficult}</h5>
                            </div>
                        </div>
                    </#list>
                </#if>
                <hr>
                <#if save.essayList?size != 0>
                    <div class="panel-title">
                        <h3>简答选择题 共${save.essayList?size}题,每题${json.essayScore}分</h3>
                    </div>
                    <#list save.essayList as emp>
                        <#assign index=index+1>
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h2 class="panel-title">${index}.题目: ${emp.essayQuestion}</h2>
                            </div>
                            <div class="panel-body">
                                <h5>答案: ${emp.answer}</h5>
                                <h5>分数: ${emp.score}</h5>
                                <h5>难度: ${emp.difficult}</h5>
                            </div>
                        </div>
                    </#list>
                </#if>
                <hr>
                <#if save.fillList?size != 0>
                    <div class="panel-title">
                        <h3>填空题 共${save.fillList?size}题,每题${json.fillScore}分</h3>
                    </div>
                    <#list save.fillList as emp>
                        <#assign index=index+1>
                        <div class="panel panel-default">
                            <div class="panel-heading">
                                <h2 class="panel-title">${index}.题目: ${emp.fillQuestion}</h2>
                            </div>
                            <div class="panel-body">
                                <h5>答案: ${emp.answer}</h5>
                                <h5>分数: ${emp.score}</h5>
                                <h5>难度: ${emp.difficult}</h5>
                            </div>
                        </div>
                    </#list>
                </#if>
            <#else>
                <h1>未找到该试卷</h1>
            </#if>
        </div>
        <div class="col-md-2"></div>
    </div>
</div>
</body>

<script src="/jquery-3.3.1/jquery-3.3.1.min.js"></script>
<script src="/bootstrap/js/bootstrap.min.js"></script>
</html>